package com.cool.mapper.sysmanagemapper;

import com.cool.bo.sysmanage.resource.PermissionQueryBo;
import com.cool.po.sysmanagepo.PermissionPo;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.access.ConfigAttribute;

import java.util.List;

public interface PermissionPoMapper {
    /**
     * delete by primary key
     *
     * @param permissionId primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer permissionId);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(PermissionPo record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(PermissionPo record);

    /**
     * select by primary key
     *
     * @param permissionId primary key
     * @return object by primary key
     */
    PermissionPo selectByPrimaryKey(Integer permissionId);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(PermissionPo record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(PermissionPo record);

    /**
     * 选择所有
     *
     * @return {@link List <PermissionPo> }
     * @author Jiangmanman
     * @date 2020/07/29
     */
    List<PermissionPo> selectAll(@Param("permissionQueryBo") PermissionQueryBo permissionQueryBo);

    Integer updateById(@Param("id") Integer id, @Param("permissionPo") PermissionPo permissionPo);

    List<PermissionPo> selectAllMsg();

    List<String> selectByUri(String requestUrl);

    List<String> selectAllUri();
}